package com.xxx.bean;

import com.xxx.service.HelloService;
import com.xxx.service.TPTestingService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    //@Reference(mock = "force:return 1234")
    @Reference(timeout = 4000)
    private HelloService helloService;

    @Reference
    private TPTestingService tpTestingService;

    public String sayHello(String name, int timeToWait) {
        return helloService.sayHello(name, timeToWait);
    }


    public String testingOne(){
        return tpTestingService.testingOne();
    }

    public String testingTwo(){
        return tpTestingService.testingTwo();
    }

    public String testingThree(){
        return tpTestingService.testingThree();
    }

}
